import { BaseControl, BaseStyle, DiyCompType, type IDiyBase } from '@/diy/types'

class DiyImage implements IDiyBase {
  id = ''

  type = DiyCompType.base

  componentFunctionName = '图片'

  componentName = 'DiyImage'

  data = {
    src: '',
    source: 'upload' //图片数据来源 upload:前端上传 variable:插入变量,后端赋值
  }
  style = new BaseStyle({
    height: '160px',
    width: '160px'
  })

  control = new BaseControl({
    rotatable: true
  })
}

export default DiyImage
